package com.gnerv.pabu.basic.feign.client;

import com.gnerv.pabu.basic.feign.client.fallback.ComputeClientFallback;
import com.gnerv.pabu.basic.feign.config.FeignConfiguration;
import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "pabu-manage", fallback = ComputeClientFallback.class, configuration = FeignConfiguration.class, url = "https://pabu-manage")
public interface ComputeClient {

    @RequestMapping(method = RequestMethod.GET, value = "/api/manage/permission/list")
    Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b);

}
